#!/usr/bin/env ruby
# -*- coding: us-ascii -*-
# Elizabeth Wiethoff 2008

begin
  platform = ENV_JAVA['os.name']
rescue NameError
  platform = RUBY_PLATFORM 
end
p platform if $DEBUG

$MSWIN = platform =~ /windows|win32|mswin|microsoft/i ? true : false
$MAC = platform =~ /mac|apple|darwin/i ? true : false

########################################

def hack_line_ending
  $/ = "\r\n" if $MSWIN
  p $/ if $DEBUG
end

def hack_home
  ENV['HOME'] ||= ENV['USERPROFILE'] if $MSWIN
  p ENV['HOME'] if $DEBUG
end
